package com.force.module.mcpclient.tools.impl;

import com.force.module.mcpclient.tools.IMcpTools;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

@Service("weatherServiceTool")
public class WeatherServiceTool implements IMcpTools {

	@Tool(description = "获取指定城市的天气")
	public String getWeather(String cityName) {

		if (cityName.equals("北京")) {
			return "晴天";
		} else if (cityName.equals("上海")) {
			return "阴天";
		} else {
			return "未知";
		}
	}


}
